package com.nengchuan.eic.nceconomy.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * excel文件表
 * </p>
 *
 * @author luoping
 * @since 2020-04-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("nc_excel_file")
@ApiModel(value="ExcelFile对象", description="excel文件表")
public class ExcelFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "excel主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "excel名称")
    private String excelName;

    @ApiModelProperty(value = "excel存储位置id")
    private Long ossId;

    @ApiModelProperty(value = "模板excel主键")
    private Long templateId;

    @ApiModelProperty(value = "单项工程id")
    private String projectId;

    @ApiModelProperty(value = "父工程id")
    private String pid;

    @ApiModelProperty(value = "对应nc_index_dict-category")
    private String categoryIndex;

    @ApiModelProperty(value = "对应nc_index_dict-project")
    private String projectIndex;

    @ApiModelProperty(value = "1-送审版 2-审定版")
    private int version;

    @ApiModelProperty(value = "逻辑删除（0：有效 1：删除）")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    private Long createId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField(fill = FieldFill.INSERT)
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "修改人id")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField(fill = FieldFill.UPDATE)
    private String modifyName;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyTime;


}
